<table>
<?php if($myposts!=null){?>
<?php foreach($myposts as $post){ ?>
	<tr>
		<td><?php if(isset($post['Image'][0]['Thumbnail']["path_small"])) echo $html->image($post['Image'][0]['Thumbnail']['path_big']); else echo $html->image("no_image.gif", array('width'=>200, 'height'=>200)); ?></td>
		<td><?php echo $post['Post']["title"]; ?><br><?php echo $post["Post"]["address"]; ?></td>
		<td><?php echo $html->link("Edit",array("controller"=>"posts","action"=>"edit",$post['Post']["id"],$this->Facebook->get_id()))?></td>
		<td><?php echo $html->link("Delete",array("controller"=>"posts","action"=>"delete",$post['Post']["id"],$this->Facebook->get_id()),null, sprintf(__('Are you sure you want to delete \'%s\'?', true), $post['Post']['title']));?></td>
	</tr>
<?php } ?>
<?php }else{ echo "You don't have posted any place yet"; }?>
</table>
